package org.jerry.virtualoperator.config;

import com.github.benmanes.caffeine.cache.Cache;
import com.github.benmanes.caffeine.cache.Caffeine;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Date 2020/11/24
 * @Created JerryZeng
 */

@Configuration
public class CacheConfig {


    @Bean
    public Cache<Long, String> templateBackCache() {
        return Caffeine.newBuilder()
                .maximumSize(100)
                .build();
    }
}
